package com.qd.common.panda.domain.entity.stroke.mystroke;

import com.qd.common.panda.domain.entity.carpark.PersonCarPark;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Optional;

/**
 * 我的行程显示
 * @author sjk
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class RunMyStrokeVO extends PersonCarPark {
    /**
     * 行程信息，进行中的
     */
    private UserStrokeVO userStrokeVO;


    @Override
    public void freeData() {
        Optional.ofNullable(userStrokeVO).ifPresent(UserStrokeVO::freeData);
    }
}